package cn.cvs.service.impl;

import cn.cvs.dao.AuctionDao;
import cn.cvs.entity.Auction;
import cn.cvs.service.AuctionService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service("auctionService")
public class AuctionServiceImpl implements AuctionService{
    @Resource
    private AuctionDao auctionDao;

    @Override
    public List<Auction> getList1() {
        return auctionDao.getList1();
    }

    @Override
    public List<Auction> getList2() {
        return auctionDao.getList2();
    }

    @Override
    public int delAuction(Integer id) {
        return auctionDao.delAuction(id);
    }

    @Override
    public int updAuction(Auction auction) {
        return auctionDao.updAuction(auction);
    }

    @Override
    public int addAuction(Auction auction) {
        return auctionDao.addAuction(auction);
    }

    @Override
    public Auction getById(Integer ids) {
        return auctionDao.getById(ids);
    }

    @Override
    public List<Auction> getList(Auction auction) {
        return auctionDao.getList(auction);
    }

    @Override
    public int getCount(Auction auction) {
        return auctionDao.getCount(auction);
    }

    @Override
    public int count() {
        return auctionDao.count();
    }
}
